<?php

class Adept_Template_Tag_Place extends Adept_Template_Tag 
{
    
  protected $captures;
  
  public function prepare() {
  	$captured = $this->getRoot()->findChildrenByClass('Adept_Template_Tag_Capture', true);
    foreach ($captured as $capture) {
      if (strcasecmp($capture->getAttributeValue('name'), $this->getAttributeValue('name')) == 0) {
        $children = $capture->getChildren();
        foreach ($children as $child) {
          $this->addChild($child);
        }
      }
    }
    parent::prepare();
  }
  
}